package com.example.mylibrarybase.yumengmeng23.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.mylibrarybase.R;
import com.example.mylibrarybase.bar.initAction_Bar;
import com.example.mylibrarybase.base.baseui.BaseActivity;
import com.example.mylibrarybase.utils.UtilsToast;

public class MainActivity_23_weixin extends BaseActivity {

    private TextView mTv_buy;
    private initAction_Bar Base_action_bar;
    private TextView tv_buy_weixin;
    private TextView tv_buy_zhifubao;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
            initView();
    }

    @Override
    public int getlayouXML() {
        return R.layout.activity_main_22_weixin;
    }

    @Override
    public void initView() {
        tv_buy_weixin = (TextView) findViewById(R.id.tv_buy_weixin);
        tv_buy_zhifubao = (TextView) findViewById(R.id.tv_buy_zhifubao);

        tv_buy_weixin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                UtilsToast.showToast(MainActivity_23_weixin.this, "我点了微信购买");


            }
        });
        tv_buy_zhifubao.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                UtilsToast.showToast(MainActivity_23_weixin.this, "我点了支付宝购买");
        /*        Intent intent = new Intent(MainActivity_23_weixin.this, PayDemoActivity.class);
                startActivity(intent);*/
            }
        });


        Base_action_bar = (initAction_Bar) findViewById(R.id.base_action_bar);
        Base_action_bar.setCallBack(new initAction_Bar.Action_bar_call_back() {
            @Override
            public void getAction_barView_backbutton(TextView textView) {

            }

            @Override
            public void getAction_barView_backbutton_icon(ImageView imageView) {

            }

            @Override
            public void getAction_barView_title(TextView textView) {
                textView.setText("微信支付 支付宝支付");
            }

            @Override
            public void getAction_barView_right_icon(ImageView imageView) {

            }
        });
    }

    @Override
    public void initData() {

    }
}
